package com.zdlyh.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value ="sys_user_role")
@ApiModel(value = "UserRole",description = "用户角色实体")
public class UserRole implements Serializable {

    @ApiModelProperty(value = "用户ID")
    // @TableId
    private Long userId;

    @ApiModelProperty(value = "角色ID")
    // @TableId
    private Long roleId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}